#!/usr/bin/env python
# -*- coding:utf-8 -*-
import json

from bottle import Bottle

artiDesAdm = Bottle()

# Excel自研数据演算服务
# Vue+ele管理台界面数据接口

colMap = [
    {"key": 1, "opt": {"label": "月白", "cmyk": "C20M5Y5K0", "rgb": "R212G229B239", "bitcolor": "#D4E5EF"},
     "opt2": {"label": "品月", "cmyk": "C50M25Y10K0", "rgb": "R138G171B204", "bitcolor": "#8AABCC"}},
    {"key": 2, "opt": {"label": "暮山紫", "cmyk": "C40M30Y0K0", "rgb": "R164G171B214", "bitcolor": "##A4ABD6"},
     "opt2": {"label": "延维", "cmyk": "C80M75Y0K0", "rgb": "R74G75B157", "bitcolor": "#4A4B9D"}},
    {"key": 3, "opt": {"label": "总辖", "cmyk": "C50M10Y30K0", "rgb": "R136G191B184", "bitcolor": "#88BFB8"},
     "opt2": {"label": "石绿", "cmyk": "C85M50Y60K10", "rgb": "R32G104B100", "bitcolor": "#206864"}},
    {"key": 4, "opt": {"label": "雀梅", "cmyk": "C60M40Y6050", "rgb": "R120G138B111", "bitcolor": "#788A6F"},
     "opt2": {"label": "螺青", "cmyk": "C80M65Y85K20", "rgb": "R63G80B59", "bitcolor": "#3F503B"}},
    {"key": 5, "opt": {"label": "米汤娇", "cmyk": "C5M5Y15K5", "rgb": "R238G234B217", "bitcolor": "#EEEAD9"},
     "opt2": {"label": "綟绶", "cmyk": "C60M55Y75K10", "rgb": "R117G108B75", "bitcolor": "#756C4B"}},
    {"key": 6, "opt": {"label": "黄琮", "cmyk": "C45M45Y60K0", "rgb": "R158G140B107", "bitcolor": "#9E8C6B"},
     "opt2": {"label": "苍艾", "cmyk": "C65M65Y75K30", "rgb": "R90G76B59", "bitcolor": "#5A4C3B"}},
    {"key": 7, "opt": {"label": "明茶褐", "cmyk": "C45M50Y60K0", "rgb": "R158G131B104", "bitcolor": "#9E8368"},
     "opt2": {"label": "椒褐", "cmyk": "C55M75Y75K25", "rgb": "R114G69B58", "bitcolor": "#72453A"}},
    {"key": 8, "opt": {"label": "半见", "cmyk": "C0M0Y30K0", "rgb": "R255G251B199", "bitcolor": "#FFFBC7"},
     "opt2": {"label": "姜黄", "cmyk": "C20M20Y70K0", "rgb": "R214G197B86", "bitcolor": "#D6C560"}},
    {"key": 9, "opt": {"label": "小红", "cmyk": "C5M65Y55K0", "rgb": "R230G119B98", "bitcolor": "#E67762"},
     "opt2": {"label": "朱殷", "cmyk": "C30M90Y95K0", "rgb": "R185G58B38", "bitcolor": "#B93A26"}},
    {"key": 10, "opt": {"label": "粉米", "cmyk": "C5M30Y10K0", "rgb": "R239G196B206", "bitcolor": "#EFC4CE"},
     "opt2": {"label": "鞓红", "cmyk": "C30M90Y95K0", "rgb": "R185G58B38", "bitcolor": "#B93A26"}},
    {"key": 11, "opt": {"label": "龙膏烛", "cmyk": "C10M60Y10K0", "rgb": "R222G130B167", "bitcolor": "#DE82A7"},
     "opt2": {"label": "胭脂紫", "cmyk": "C35M85Y35K0", "rgb": "R176G67B111", "bitcolor": "#B0436F"}},
    {"key": 12, "opt": {"label": "藕丝褐", "cmyk": "C40M50Y40K0", "rgb": "R168G135B135", "bitcolor": "#A88787"},
     "opt2": {"label": "福色", "cmyk": "C60M90Y80K30", "rgb": "R102G43B47", "bitcolor": "#662B2F"}}
]


class ExcelAdminRoute:
    ERROR_CODE = {
        "80": "数据读取异常错误，请联系管理员",
        "99": "处理参数错误",
        "100": "数据添加失败，请检查服务端日志",
        "102": "数据更新失败，请检查服务端日志",
        "103": "数据删除失败，请检查服务端日志",
        "104": "数据停止失败，请检查服务端日志",
        "105": "数据恢复失败，请检查服务端日志",
        "106": "数据激活失败，请检查服务端日志",
        "109": "数据不存在，数据处理失败",
    }

    impl = None

    def __init__(self, service):
        return


if __name__ == '__main__':
    print(json.dumps(colMap, ensure_ascii=False))